/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* 消除点击高亮 */
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* 自定义变量 */
:root {
    --primary: #165DFF;
    --secondary: #722ED1;
    --accent: #00B42A;
    --dark: #1D2129;
    --darker: #12151B;
    --light: #F2F3F5;
    --muted: #A0AEC0;
    --transition: all 0.3s ease;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    background-image:
            radial-gradient(circle at 25% 25%, rgba(22, 93, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(114, 46, 209, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* 自定义工具类 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-blur {
    backdrop-filter: blur(8px);
}

.parallax {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(22, 93, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 93, 255, 0.8);
}

/* 动画定义 */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(20px, 10px); }
    100% { transform: translate(0, 0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes counter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 3s infinite ease-in-out;
}

/* 滚动动画元素 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: var(--transition);
    padding: 1rem 0;
}

#navbar.scrolled {
    background: rgba(18, 21, 27, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link span {
    color: var(--primary);
    margin-right: 0.25rem;
}

.nav-links {
    display: none;
    gap: 2rem;
    color: var(--muted);
}

.nav-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--light);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主视觉区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.bg-decoration-primary {
    position: absolute;
    top: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 30s infinite ease-in-out;
}

.bg-decoration-secondary {
    position: absolute;
    bottom: -10rem;
    right: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(114, 46, 209, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 25s infinite ease-in-out;
    animation-delay: 2s;
}

.title-container {
    position: relative;
    text-align: center;
    padding: 2rem 0;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-in-out;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    animation: slideUp 0.8s ease-out;
    animation-delay: 0.2s;
}

.primary-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover {
    background: rgba(22, 93, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(22, 93, 255, 0.2);
}

.primary-btn i {
    margin-left: 0.5rem;
}

.fa-icon-animate {
    transition: transform 0.3s ease;
}

.fa-icon-animate:hover {
    transform: scale(1.1) translateX(3px);
}

.secondary-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    border-color: rgba(22, 93, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(22, 93, 255, 0.1);
}

.secondary-btn i {
    margin-left: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.scroll-indicator a:hover {
    color: var(--light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}

/* 特性展示区域 */
.features-section {
    padding: 8rem 0;
    background: rgba(31, 41, 55, 0.5);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: rgba(31, 41, 55, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(22, 93, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.1);
}

.feature-icon-container {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(22, 93, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.1);
}

.feature-icon-container.second {
    background: rgba(114, 46, 209, 0.2);
}

.feature-icon-container.third {
    background: rgba(0, 180, 42, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
}

.feature-icon.second {
    color: var(--secondary);
}

.feature-icon.third {
    color: var(--accent);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--muted);
    line-height: 1.6;
}

/* 服务展示区域 */
.services-section {
    padding: 8rem 0;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(5px);
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon.primary {
    background: rgba(22, 93, 255, 0.2);
    color: var(--primary);
}

.service-icon.secondary {
    background: rgba(114, 46, 209, 0.2);
    color: var(--secondary);
}

.service-icon.accent {
    background: rgba(0, 180, 42, 0.2);
    color: var(--accent);
}

.service-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-text p {
    color: var(--muted);
}

.service-image {
    position: relative;
}

.image-scale {
    transition: transform 0.5s ease;
}

.service-image:hover .image-scale {
    transform: scale(1.02);
}

.service-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.image-border-1 {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(22, 93, 255, 0.3);
    border-radius: 1rem;
    z-index: -1;
    transition: transform 0.5s ease;
}

.service-image:hover .image-border-1 {
    transform: translate(5px, 5px);
}

.image-border-2 {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(114, 46, 209, 0.3);
    border-radius: 1rem;
    z-index: -1;
    transition: transform 0.5s ease;
}

.service-image:hover .image-border-2 {
    transform: translate(-5px, -5px);
}

/* 关于我们 */
.about-section {
    padding: 8rem 0;
    background: rgba(31, 41, 55, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 100px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
    animation: counter 1s ease-out forwards;
}

.stat-label {
    color: var(--muted);
}

/* 联系我们 */
.contact-section {
    padding: 8rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form {
    background: rgba(31, 41, 55, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--light);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: rgba(22, 93, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px -3px rgba(22, 93, 255, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

.contact-text h4 {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--muted);
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(22, 93, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* 页脚 */
.footer {
    padding: 5rem 0 3rem;
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--light);
}

.copyright {
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

/* 响应式调整 */
@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-content,
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
    }

    .footer-links {
        margin-bottom: 0;
    }
}
